<?php



class OrdersProductsAttributesMapBuilder {

	
	const CLASS_NAME = 'lib.model.map.OrdersProductsAttributesMapBuilder';

	
	private $dbMap;

	
	public function isBuilt()
	{
		return ($this->dbMap !== null);
	}

	
	public function getDatabaseMap()
	{
		return $this->dbMap;
	}

	
	public function doBuild()
	{
		$this->dbMap = Propel::getDatabaseMap('propel');

		$tMap = $this->dbMap->addTable('orders_products_attributes');
		$tMap->setPhpName('OrdersProductsAttributes');

		$tMap->setUseIdGenerator(true);

		$tMap->addPrimaryKey('ORDERS_PRODUCTS_ATTRIBUTES_ID', 'OrdersProductsAttributesId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ORDERS_ID', 'OrdersId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('ORDERS_PRODUCTS_ID', 'OrdersProductsId', 'int', CreoleTypes::INTEGER, true, null);

		$tMap->addColumn('PRODUCTS_OPTIONS', 'ProductsOptions', 'string', CreoleTypes::VARCHAR, true, 32);

		$tMap->addColumn('PRODUCTS_OPTIONS_VALUES', 'ProductsOptionsValues', 'string', CreoleTypes::VARCHAR, true, 32);

		$tMap->addColumn('OPTIONS_VALUES_PRICE', 'OptionsValuesPrice', 'double', CreoleTypes::DECIMAL, true, 15);

		$tMap->addColumn('PRICE_PREFIX', 'PricePrefix', 'string', CreoleTypes::CHAR, true, 1);

	} 
} 